<#--通用tag标签-->
<#macro html title="" url="">
<#include "/WEB-INF/content/include/modules.ftl">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>${title}</title>
	<meta name="keywords" content="" />
	<meta name="url" content="${url}" />
	<meta name="description" content="" />
	<meta name="robots" content="all" />
	<meta name="author" content="" />
	<link rel="stylesheet" type="text/css" media="screen" href="${base}/style/theme.css" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script> 
	<script language="JavaScript">
		var base = "${(base)!}";
	</script>
</head>
<body>
		<#include "/WEB-INF/content/include/front/header.ftl">
		<#include "/WEB-INF/content/include/front/nav.ftl">
		<#nested/>
		<#include "/WEB-INF/content/include/front/footer.ftl">
	
	<#-- 以下嵌套了登录信息-->
	<script type="text/javascript" src="${statics}/scripts/dialog/dialog.js" language="javascript"></script>
	<link rel="stylesheet" type="text/css" media="screen" href="${statics}/scripts/dialog/dialog.css" />	

	<div class="reg_login" id="login_div" style="display:none;">
		<form id="loginForm" name="loginForm" method="post" action="${base}/login!login" >
		<div class="reg_login_l">
			<table>
				<colgroup width="30%"></colgroup>
				<tr>
					<th></th>
					<td class="tit"><a href="${base}/regist">用户注册</a>|<a href="#">忘记密码</a></td>
				</tr>
				<tr>
					<th>用户名或邮箱 :</th>
					<td><input name="user.email" id="login_email" type="text" class="t" style="height:20px; width:220px;" /><span id="login_emailTip"></span></td>
				</tr>
				<tr>
					<th>密 码 :</th>
					<td><input name="user.password" id="login_password" type="password" class="t" style="height:20px; width:220px;" /><span id="login_passwordTip"></span></td>
				</tr>
				<#--<tr>
					<th></th>
					<td class="sp"><input name="" type="radio" value="" />个人MEYMEY<input name="" type="radio" value="" />机构MEYMEY </td>
				</tr>-->
				<tr>
					<th></th>
					<td class="sp"><input name="" type="checkbox" value="" />记住登录状态 </td>
				</tr>
				<tr>
					<th></th>
					<td><input name="" type="button" onClick="login()" class="w" value="登 录" /> </td>
				</tr>
			</table>
		</div>
		<div class="reg_login_r">
			<img src="${base}/images/reg_loginimg.gif" style="margin-top:20px;" />
		</div>
		</form>
	</div>
<script>
function openLoginDialog(){
	dialog("登陆", "id:login_div", "765px", "auto", "id");
	$("#login_email").focus();
}
function login(){
	var loginEmail=$("#login_email").val();
	var loginPassword=$("#login_password").val();
	if(loginEmail==""){
		$("#login_emailTip").html("<font color='red'>请输入用户名或邮箱</font>");
		return;
	}
	if(loginPassword==""){
		$("#login_passwordTip").html("<font color='red'>请输入密码</font>");
		return;
	}
    $.ajax({
        type: "post",
        dataType: "json",
        url: base + "/login!check?time=" + new Date().getTime(),
        async: false,
        data: {
            "user.email": loginEmail,
            "user.password": loginPassword
        },
        success: function(pass){
            if (pass == "2") {
                $("#pass_message").html("");
                $("#loginForm").submit();
            }
            else {
                $("#login_emailTip").html("用户、邮箱或密码有误");
            }
        }
    });
}
</script>
<#-- 流量统计-->
<#--<script src="http://s17.cnzz.com/stat.php?id=2422084&web_id=2422084&show=pic1" language="JavaScript"></script>-->
</body>
</html>
</#macro>


